
#include <stdio.h>
#include "plain-matching.h"

int main(){
    int position;
    char obj[256];
    char pattern[32];

    puts("Input a paragraph text");
    gets(obj);
    puts("Input the string which you want to search in the former:");
    gets(pattern);
    puts("Input the start location:");
    scanf("%d",&position);

    if (Index(obj,pattern,&position)){
        puts("NONE");
    } else{
        printf("\nlocation:%d\n",position);
    }



    return(0);

}